package cn.ylz.ylmall.aftersale.dao.persist.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import cn.ylz.ylmall.aftersale.pojo.entity.AfterSale;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
* @author pc
* @description 针对表【after_sale(售后表)】的数据库操作Mapper
* @createDate 2023-08-26 15:22:28
* @Entity cn.ylz.ylmall.aftersale.pojo.entity.AfterSale
*/
@Mapper
public interface AfterSaleMapper extends BaseMapper<AfterSale> {

    /**
     * 查询用户的售后列表
     * @param userId
     * @return
     */
    List<AfterSale> selectAllByUserId(@Param("userId") Long userId);

    /**
     * 查询所有售后
     * @return
     */
    List<AfterSale> selectAll();

    int delByOrderNo(@Param("orderNo") String orderNo);
}




